﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cofe.Core;
using Cofe.Core.Implements;
using Cofe.Core.Interfaces;
using Cofe.Core.Service;
using Cofe.Media.Implements;

namespace Cofe.Media
{
    public class RegisterModule : RegisterModuleBase
    {
        public RegisterModule(bool dbSupport = true)
        {
            //Add all services here.
            base.registerServices(
                 new MediaPropertyDefinitions(),
                 new ExifPropertyDefinitions(),
                 new MediaInterfaceProvider(),
                 new MediaPropertyProviderFactory()
                 );

            if (dbSupport)
                base.registerServices(
                 new EFMediaInfoConfig()
                 );
        }
    }
}
